Mock.mock("/js/idbdcc", "post", function (obj) {
    let bodyObj = JSON.parse(obj.body);
    //1.获取本地存储 
    let teaString = localStorage.Tea;
    let teaStringArr = JSON.parse(teaString);
    let xuhao;
    for (let i = 0; i < teaStringArr.length; i++) {
        if (bodyObj.id == teaStringArr[i].id) {
            xuhao = i;
            break;
        }
    }

    let arr = [teaStringArr[xuhao]]
    localStorage.TeaCar = JSON.stringify(arr)
    return true;
})